<!DOCTYPE html>
<html lang="en">

<head>
  <meta charset="UTF-8">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <meta http-equiv="X-UA-Compatible" content="ie=edge">
  <title>乐淘首页-老师上课代码</title>
  <link rel="stylesheet" href="./assets/mui/css/mui.css">
  <link rel="stylesheet" href="./assets/fontAwesome/css/font-awesome.css">
  <link rel="stylesheet" href="./css/common.css">
  <link rel="stylesheet" href="./css/cart.css">
</head>

<body>
  <header class="lt_header">
    <h4 class="lt_title">
      <a class="lt_h_left" href="javascript:history.back();">
        <span class="fa  fa-arrow-left"></span>
      </a>
      购物车
      <a class="lt_h_right" href="#">
        <span class="fa fa-refresh"></span>
      </a>
      <!-- search -->
    </h4>
  </header>
  <div class="lt_container">
    <div id="refreshContainer" class="mui-content mui-scroll-wrapper">
      <div class="mui-scroll">
        <!-- 放我们的代码 -->
        <ul id="OA_task_2" class="mui-table-view">

        </ul>
        <!-- 放我们的代码 -->

      </div>
    </div>

  </div>

  <!-- 商品订单 -->
  <div class="order_info">
    <span class="order_total_price">
      订单总额:￥0.00
    </span>
    <button class="createOrderBtn">生成订单</button>
  </div>
  <footer class="lt_footer mui-clearfix">
    <a href="/mobile/index.html">
      <span class="mui-icon mui-icon-home"></span>
      <p>首页</p>
    </a>
    <a href="/mobile/category.html">
      <span class="mui-icon mui-icon-bars"></span>
      <p>分类</p>
    </a>
    <a class="active" href="/mobile/cart.html">
      <span class="fa fa-shopping-cart"></span>
      <p>购物车</p>
    </a>
    <a href="/mobile/user/index.html">
      <span class="fa fa-user"></span>
      <p>会员中心</p>
    </a>
  </footer>
</body>
<script type="text/html" id="itemTpl">
  {{each data as value }}
  <li data-obj="{{objToJson(value)}}" class="mui-table-view-cell mui-transitioning">
    <div class="mui-slider-right mui-disabled">
      <a class="mui-btn mui-btn-primary editBtn " style="transform: translate(0px, 0px);">编辑</a>
      <a class="mui-btn mui-btn-danger  deleteBtn" style="transform: translate(-88px, 0px);">删除</a>
      <!-- <a class="mui-btn mui-btn-red mui-icon mui-icon-email" style="transform: translate(-180px, 0px);"></a> -->
    </div>
    <div class="mui-slider-handle" style="transform: translate(0px, 0px);">
      <div class="mui-table-cell">
        <div class="pro_list">
          <div class="pro_item mui-clearfix">
              <div class="pro_item mui-clearfix">
                  <!-- 左边图片 -->
                  <div class="item_img">
                    <img src="./images/product.jpg" alt="">
                    <input class="chkInp" type="checkbox" name="" id="">
                  </div>
                  <!-- 右边是商品详情 -->
                  <div class="item_info">
                     <!-- 商品的描述 -->
                     <div class="item_proName mui-ellipsis-2">
                       {{value.proName}}
                     </div>
                     <!-- 商品的价格 -->
                     <div class="item_price mui-clearfix">
                       <!-- 价格 -->
                       <div class="it_total_price">
                         <span class="new_price">￥{{value.price}}</span>
                         <span class="old_price">￥{{value.oldPrice}}</span>
                       </div>
                       <!-- 数量 -->
                       <span class="it_pri_num">
                         x{{value.num}}双
                       </span>
                     </div>
                     <!-- 尺码 -->
                     <div class="item_size">
                       鞋码:{{value.size}}
                     </div>
                  </div>
                </div>
          </div>
        </div>
      </div>
    </div>
  </li>
  {{/each}}
</script>

<!-- 编辑框里面的html -->
<script type="text/html" id="editTpl">
  <div class="pro_size">
    尺码:
    {{each sizeArr as value}}
    {{ if size== value }}
    <span class="active">{{value}}</span>
    {{/if}}
    {{ if size!= value }}
    <span >{{value}}</span>
    {{/if}}
    {{/each}}
  </div>
  <!-- 数量 -->
  <div class="pro_num">
    数量:
    <!-- mui的数字输入框的组件 -->
    <div class="mui-numbox" data-numbox-min="0" data-numbox-max="{{productNum}}" >
      <!-- "-"按钮，点击可减小当前数值 -->
      <button class="mui-btn mui-numbox-btn-minus" type="button">-</button>
      <input class="mui-numbox-input" type="number" value="{{num}}" />
      <!-- "+"按钮，点击可增大当前数值 -->
      <button class="mui-btn mui-numbox-btn-plus" type="button">+</button>
    </div>
    剩余:{{productNum}}件
  </div>
</script>

<script src="./assets/mui/js/mui.js"></script>
<script src="./assets/zepto/zepto.min.js"></script>
<script src="./assets/artTemplate/template.js"></script>
<script src="./js/common.js"></script>
<script src="./js/cart.js"></script>

</html>

<!-- 
  mui-ellipsis-2
  
 -->